const fs = require('fs')
const path = require('path')
const HANDLER_PATH = path.resolve(__dirname, './controller')

let CONTROLLER = {}
fs.readdirSync(HANDLER_PATH).forEach(x => {
    CONTROLLER[path.parse(x).name] = require(path.resolve(HANDLER_PATH, x))
})

module.exports = CONTROLLER